import Vue from 'vue'
import App from './App.vue'
import { Button, Layout, Icon, Drawer, Radio, Menu, Form, Input, FormModel } from 'ant-design-vue'
import Authorized from './components/Authorized.vue'
import router from './router'
import store from './store'
import Auth from './directives/auth'

import request from './utils/request'
Vue.prototype.$request =request

Vue.config.productionTip = false
Vue.use(Button)
Vue.use(Layout)
Vue.use(Icon)
Vue.use(Drawer)
Vue.use(Radio)
Vue.use(Menu)
Vue.use(Auth)
Vue.use(Form)
Vue.use(Input)
Vue.use(FormModel)
Vue.component('Authorized',Authorized)


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
